<!--
 * @Description: 当前位置
 * @Author:  zhangweigang
 * @Date: 2021-02-14 20:08:04
 * @LastEditTime: 2021-03-06 17:26:39
 * @LastEditors:  
-->
<template>
  <div class="content-lcoal">
    <strong>当前位置：</strong>
    <span class="index" @click="returnIndex">首页</span>
    --><span>{{ title }}</span>
  </div>
</template>

<script>
export default {
  name: "CurrentLocation",
  props: {
    title: {
      type: String,
      default: function () {
        return "首页";
      },
    },
  },
  mounted() {},
  data() {
    return {};
  },
  methods: {
    returnIndex() {
      this.$router.push("/home");
    }, 
  },
};
</script>

<style scoped>
.index {
  cursor: pointer;
}
</style>